//
//  __1HelloViewAppDelegate.m
//  3-1HelloView
//
//  Created by smu lin on 11-8-9.
//  Copyright 2011年 duk. All rights reserved.
//

#import "__1HelloViewAppDelegate.h"

@implementation __1HelloViewAppDelegate

@synthesize window;


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    CGRect screenBounds = [[UIScreen mainScreen] applicationFrame];
    CGRect windowBounds = screenBounds;;
    windowBounds.origin.y = 0.0;
    
    //初始化窗口
    self.window = [[UIWindow alloc] initWithFrame:screenBounds];
    
    //初始化视图
    myView = [[UIView alloc] initWithFrame:windowBounds];
    
    //将视图链接到窗口
    [window addSubview:myView];
    
    //另窗口成为主窗口并显示出来
    [self.window makeKeyAndVisible];
    return YES;
}



- (void)dealloc
{
    [myView release];
    [window release];
    [super dealloc];
}

@end
